home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / portfoli / bootst11.lzh / PF BOOTSTRAP VATIPX PCMDTABC < prev    next >
Text File  |  1991-05-02  |  2KB  |  63 lines

  1. /*
  2.  * Copyright (c) 1983 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that the above copyright notice and this paragraph are
  7.  * duplicated in all such forms and that any documentation,
  8.  * advertising materials, and other materials related to such
  9.  * distribution and use acknowledge that the software was developed
  10.  * by the University of California, Berkeley.  The name of the
  11.  * University may not be used to endorse or promote products derived
  12.  * from this software without specific prior written permission.
  13.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16.  */
  17. /*+:EDITS:*/
  18. /*:05-08-1990-15:55-wht@n4hgf-rawthru */
  19.  
  20. #ifndef lint
  21. static char sccsid[] = "@(#)cmdtab.c    5.5 (Berkeley) 9/2/88";
  22. #endif /* not lint */
  23.  
  24. #include "tip.h"
  25.  
  26. extern    int shell(), getfl(), sendfile(), chdirectory();
  27. extern    int finish(), help(), pipefile(), pipeout(), consh(), variable();
  28. extern    int cu_take(), cu_put(), dollar(), genbrk(), suspend();
  29.  
  30. #ifdef TIPX
  31. extern int genctls(), genctlq(), rawthru_control();
  32. extern int filexfer();
  33. #endif
  34.  
  35. esctable_t etable[] = {
  36.     { '!',    NORM,    "shell",             shell },
  37.     { '<',    NORM,    "receive file from remote host", getfl },
  38.     { '>',    NORM,    "send file to remote host",     sendfile },
  39.     { 't',    NORM,    "take file from remote UNIX",     cu_take },
  40.     { 'p',    NORM,    "put file to remote UNIX",     cu_put },
  41.     { '|',    NORM,    "pipe remote file",         pipefile },
  42.     { '$',    NORM,    "pipe local command to remote host", pipeout },
  43. #ifdef CONNECT
  44.     { 'C',  NORM,    "connect program to remote host",consh },
  45. #endif
  46.     { 'c',    NORM,    "change directory",         chdirectory },
  47.     { '.',    NORM,    "exit from tip",         finish },
  48.     {CTRL('d'),NORM,"exit from tip",         finish },
  49.     {CTRL('y'),NORM,"suspend tip (local+remote)",     suspend },
  50.     {CTRL('z'),NORM,"suspend tip (local only)",     suspend },
  51.     { 's',    NORM,    "set variable",             variable },
  52.     { '?',    NORM,    "get this summary",         help },
  53.     { '#',    NORM,    "send break",             genbrk },
  54. #ifdef TIPX
  55.     { 'S',    NORM,    "send ^S (XOFF)",         genctls },
  56.     { 'Q',    NORM,    "send ^Q (XON)",         genctlq },
  57.     { 'R',    NORM,    "set rawthru mode",         rawthru_control },
  58.     { 'N',    NORM,    "no rawthru mode",         rawthru_control },
  59.     { 'X',  NORM,    "X/Y/ZMODEM send/receive",filexfer },
  60. #endif
  61.     { 0, 0, 0 }
  62. };
  63.